﻿using DinletBilsin.WebService.Models;
using System.Collections.Generic;
using System.Web.Mvc;

namespace DinletBilsin.WebService.Controllers
{
    public class HomeController : Controller
    {      
        public ActionResult Index()
        {
            ViewBag.Title = "Home Page";


            return View();
        }
        
      
        public ActionResult SearchWithHash(long[] noktalar)
        {         

            if (noktalar != null)
            {
                Util.DataBasePath = HttpContext.Server.MapPath("~/App_Data") + "\\index.db";
                string result = DinletBilsinCore.ReturnResult("", false, noktalar);

                return Content(result.ToString(), "text/html");
            }
            return Content("amk!", "text/html");
         

        }
       

        public ActionResult SarkiIste()
        {
            return View();
        }
    }
}
